<!DOCTYPE html>
<html>
<head>
<style type="text/css">
    body {font: normal 150% "Microsoft YaHei",Arial,sans-serif;}
</style>
<meta charset="utf-8">
<meta http-equiv="refresh" content="60">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>上海电信IPTV视频流地址</title>
<link rel="icon" type="image/png" href="/ico/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="/ico/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/ico/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="/ico/favicon-194x194.png" sizes="194x194" />
<link rel="icon" type="image/png" href="/ico/android-chrome-192x192.png" sizes="192x192" />
</head>
<body>

<h2>上海电信IPTV视频流地址</h2>
<p>开始日期: <input type="date" id="begin_user_date" />  &emsp; 开始时间: <input type="time" id="begin_user_time" /></p>
<p>结束日期: <input type="date" id="end_user_date" />  &emsp; 结束时间: <input type="time" id="end_user_time" /></p>
<p><input type="checkbox" onclick="reload()" id="HDonly"/> 仅显示HD频道</p>
<p><input type="checkbox" onclick="reload()" id="HDDel"/> HD频道去重（不显示高清频道对应的标清地址）</p>
<p><button type="button" onclick="reload()">更新链接</button>  &emsp; <button type="button" onclick="timenow(4),reload()">当前时间+4小时</button> &emsp;注：带palyseek</p>
<p><button type="button" onclick="noplayseek()">生成纯链接</button> &emsp;注：不带palyseek</p>
<p><button type="button" onclick="m3u()">生成M3U内容</button>  &emsp; <button type="button" onclick="txt()">生成txt内容</button></p>
<br>
<p id="demo"></p>
<script>
    //"ChannelHD" 1=标清 2=高清 0=可去重(有高清的标清频道)
var iptvlist = '{"iptv":['+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226079/00000100000000060000000000000305_0.smil", "ChannelHD":0, "ChannelName":"CCTV-01"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226102/00000100000000060000000000009784_0.smil", "ChannelHD":2, "ChannelName":"CCTV-01高清"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226078/00000100000000060000000000000321_0.smil", "ChannelHD":1, "ChannelName":"CCTV-02"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226109/00000100000000060000000000022679_0.smil", "ChannelHD":1, "ChannelName":"CCTV-03"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226082/00000100000000060000000000000558_0.smil", "ChannelHD":1, "ChannelName":"CCTV-04"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226105/00000100000000060000000000022370_0.smil", "ChannelHD":1, "ChannelName":"CCTV-05"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226106/00000100000000060000000000022371_0.smil", "ChannelHD":1, "ChannelName":"CCTV-06"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226155/00000100000000060000000000087195_0.smil", "ChannelHD":1, "ChannelName":"CCTV-07"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225503/00000000011i.smil", "ChannelHD":1, "ChannelName":"CCTV-08"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226157/00000100000000060000000000087197_0.smil", "ChannelHD":1, "ChannelName":"CCTV-10"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226166/00000100000000060000000000087198_0.smil", "ChannelHD":1, "ChannelName":"CCTV-11"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226159/00000100000000060000000000087199_0.smil", "ChannelHD":1, "ChannelName":"CCTV-12"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226164/00000100000000060000000000087196_0.smil", "ChannelHD":1, "ChannelName":"CCTV-NEWS"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226179/00000100000000060000000000087271_2.smil", "ChannelHD":1, "ChannelName":"CCTV-高网"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226161/00000100000000060000000000087201_0.smil", "ChannelHD":1, "ChannelName":"CCTV-少儿"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226168/00000100000000060000000000087200_0.smil", "ChannelHD":1, "ChannelName":"CCTV-新闻"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226170/00000100000000060000000000087202_0.smil", "ChannelHD":1, "ChannelName":"CCTV-音乐"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226183/00000100000000060000000000087278_2.smil", "ChannelHD":0, "ChannelName":"Knews24"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225670/0000000022is.smil", "ChannelHD":2, "ChannelName":"Knews24HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226292/10000100000000060000000001678743_0.smil", "ChannelHD":1, "ChannelName":"MAX超级汽车"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226126/00000100000000060000000000087158_0.smil", "ChannelHD":1, "ChannelName":"安徽卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226145/00000100000000060000000000087185_0.smil", "ChannelHD":0, "ChannelName":"北京卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226087/00000100000000060000000000007666_0.smil", "ChannelHD":2, "ChannelName":"北京卫视HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226189/00000100000000060000000000152297_0.smil", "ChannelHD":1, "ChannelName":"兵团卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226181/00000100000000060000000000087274_2.smil", "ChannelHD":0, "ChannelName":"超级体育01"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226185/00000100000000060000000000087272_1.smil", "ChannelHD":0, "ChannelName":"超级体育02"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226188/00000100000000060000000000087273_2.smil", "ChannelHD":0, "ChannelName":"超级体育03"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226192/00000100000000060000000000087276_2.smil", "ChannelHD":0, "ChannelName":"超级体育04"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226194/00000100000000060000000000087277_2.smil", "ChannelHD":0, "ChannelName":"超级体育05"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226196/00000100000000060000000000087275_3.smil", "ChannelHD":0, "ChannelName":"超级体育06"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226198/00000100000000060000000000088056_0.smil", "ChannelHD":0, "ChannelName":"超级体育07"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226290/10000100000000060000000001678643_0.smil", "ChannelHD":0, "ChannelName":"超级体育08"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226295/10000100000000060000000001678642_0.smil", "ChannelHD":0, "ChannelName":"超级体育09"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226297/10000100000000060000000001678644_0.smil", "ChannelHD":1, "ChannelName":"超级体育10"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226301/10000100000000060000000001678747_0.smil", "ChannelHD":1, "ChannelName":"超级体育11"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225669/0000000022ij.smil", "ChannelHD":2, "ChannelName":"超级体育01 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226193/00000100000000060000000000201563_0.smil", "ChannelHD":2, "ChannelName":"超级体育02 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226195/00000100000000060000000000201576_0.smil", "ChannelHD":2, "ChannelName":"超级体育03 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226208/00000100000000060000000000201575_0.smil", "ChannelHD":2, "ChannelName":"超级体育04 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226225/10000100000000060000000000686926_0.smil", "ChannelHD":2, "ChannelName":"超级体育05 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226232/10000100000000060000000000686925_0.smil", "ChannelHD":2, "ChannelName":"超级体育06 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226289/10000100000000060000000001678455_0.smil", "ChannelHD":2, "ChannelName":"超级体育07 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226294/10000100000000060000000001678744_0.smil", "ChannelHD":2, "ChannelName":"超级体育08 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226299/10000100000000060000000001678742_0.smil", "ChannelHD":2, "ChannelName":"超级体育09 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226108/00000100000000060000000000022373_0.smil", "ChannelHD":0, "ChannelName":"第一财经"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226231/10000100000000060000000000813433_0.smil", "ChannelHD":2, "ChannelName":"第一财经HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226093/00000100000000060000000000007692_0.smil", "ChannelHD":0, "ChannelName":"电视剧频道"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226220/10000100000000060000000000522062_0.smil", "ChannelHD":2, "ChannelName":"电视剧频道HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226197/00000100000000060000000000205536_0.smil", "ChannelHD":1, "ChannelName":"东方财经"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226100/00000100000000060000000000007698_0.smil", "ChannelHD":1, "ChannelName":"东方电影"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226098/00000100000000060000000000007697_0.smil", "ChannelHD":0, "ChannelName":"东方购物-1"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226275/10000100000000060000000001534016_0.smil", "ChannelHD":2, "ChannelName":"东方购物-1HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226202/00000100000000060000000000143614_0.smil", "ChannelHD":0, "ChannelName":"东方购物-2"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226264/10000100000000060000000001534015_0.smil", "ChannelHD":2, "ChannelName":"东方购物-2HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226240/10000100000000060000000000848366_0.smil", "ChannelHD":0, "ChannelName":"东方购物3"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226313/10000100000000060000000001865656_0.smil", "ChannelHD":2, "ChannelName":"东方购物-3HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226239/10000100000000060000000000848070_0.smil", "ChannelHD":1, "ChannelName":"东方购物4"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226243/10000100000000060000000000848375_0.smil", "ChannelHD":1, "ChannelName":"东方购物5"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226090/00000100000000060000000000007689_0.smil", "ChannelHD":0, "ChannelName":"东方卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226112/00000100000000060000000000037556_0.smil", "ChannelHD":2, "ChannelName":"东方卫视高清"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226121/00000100000000060000000000087159_0.smil", "ChannelHD":1, "ChannelName":"东南卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225484/00000000010z.smil", "ChannelHD":1, "ChannelName":"动漫秀场"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226163/00000100000000060000000000087203_0.smil", "ChannelHD":0, "ChannelName":"都市剧场"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226249/10000100000000060000000001005951_0.smil", "ChannelHD":2, "ChannelName":"都市剧场HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226162/00000100000000060000000000087194_0.smil", "ChannelHD":1, "ChannelName":"法治天地"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226131/00000100000000060000000000087169_0.smil", "ChannelHD":1, "ChannelName":"甘肃卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225522/000000000146.smil", "ChannelHD":1, "ChannelName":"高尔夫"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226138/00000100000000060000000000087170_0.smil", "ChannelHD":0, "ChannelName":"广东卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226083/00000100000000060000000000005868_0.smil", "ChannelHD":2, "ChannelName":"广东卫视HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226158/00000100000000060000000000087190_0.smil", "ChannelHD":1, "ChannelName":"广西卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226144/00000100000000060000000000087176_0.smil", "ChannelHD":1, "ChannelName":"贵州卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226096/00000100000000060000000000007695_0.smil", "ChannelHD":1, "ChannelName":"哈哈少儿"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226260/10000100000000060000000001335174_0.smil", "ChannelHD":1, "ChannelName":"好享购物"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226140/00000100000000060000000000087172_0.smil", "ChannelHD":1, "ChannelName":"河北卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226124/00000100000000060000000000087104_0.smil", "ChannelHD":1, "ChannelName":"河南卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226133/00000100000000060000000000087171_0.smil", "ChannelHD":0, "ChannelName":"黑龙江卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226085/00000100000000060000000000005880_0.smil", "ChannelHD":2, "ChannelName":"黑龙江卫视HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225546/000000000154.smil", "ChannelHD":1, "ChannelName":"红色经典"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226142/00000100000000060000000000087174_0.smil", "ChannelHD":1, "ChannelName":"湖北卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226154/00000100000000060000000000087186_0.smil", "ChannelHD":0, "ChannelName":"湖南卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226086/00000100000000060000000000005881_0.smil", "ChannelHD":2, "ChannelName":"湖南卫视HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226146/00000100000000060000000000087178_0.smil", "ChannelHD":1, "ChannelName":"欢笑剧场"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226237/10000100000000060000000000838200_0.smil", "ChannelHD":1, "ChannelName":"环球购物"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226125/00000100000000060000000000087163_0.smil", "ChannelHD":1, "ChannelName":"吉林卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225640/000000001suk.smil", "ChannelHD":0, "ChannelName":"极速汽车"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226323/10000100000000060000000002340613_0.smil", "ChannelHD":2, "ChannelName":"极速汽车HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226095/00000100000000060000000000007694_0.smil", "ChannelHD":0, "ChannelName":"纪实频道"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226230/10000100000000060000000000646848_0.smil", "ChannelHD":2, "ChannelName":"纪实频道HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226213/10000100000000060000000000379501_0.smil", "ChannelHD":1, "ChannelName":"健康社区"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226147/00000100000000060000000000087187_0.smil", "ChannelHD":0, "ChannelName":"江苏卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226110/00000100000000060000000000037546_0.smil", "ChannelHD":2, "ChannelName":"江苏卫视(高清)"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226130/00000100000000060000000000087162_0.smil", "ChannelHD":1, "ChannelName":"江西卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226088/00000100000000060000000000007667_0.smil", "ChannelHD":1, "ChannelName":"教育频道"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225496/00000000011b.smil", "ChannelHD":1, "ChannelName":"金色频道"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226148/00000100000000060000000000087180_0.smil", "ChannelHD":0, "ChannelName":"劲爆体育"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226104/00000100000000060000000000010162_0.smil", "ChannelHD":2, "ChannelName":"劲爆体育HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226153/00000100000000060000000000087193_0.smil", "ChannelHD":1, "ChannelName":"辽宁卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226149/00000100000000060000000000087189_0.smil", "ChannelHD":1, "ChannelName":"旅游卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225510/00000000011p.smil", "ChannelHD":1, "ChannelName":"魅力音乐"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226135/00000100000000060000000000087173_0.smil", "ChannelHD":1, "ChannelName":"内蒙古卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226152/00000100000000060000000000087184_0.smil", "ChannelHD":1, "ChannelName":"宁夏卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225536/00000000014l.smil", "ChannelHD":1, "ChannelName":"七彩戏剧"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226127/00000100000000060000000000087165_0.smil", "ChannelHD":1, "ChannelName":"青海卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226141/00000100000000060000000000087181_0.smil", "ChannelHD":1, "ChannelName":"全纪实"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225579/00000000016l.smil", "ChannelHD":1, "ChannelName":"赛事精选-1"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225527/00000000014c.smil", "ChannelHD":1, "ChannelName":"赛事精选-2"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226160/00000100000000060000000000087192_0.smil", "ChannelHD":1, "ChannelName":"山东卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226132/00000100000000060000000000087164_0.smil", "ChannelHD":1, "ChannelName":"山西卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226129/00000100000000060000000000087167_0.smil", "ChannelHD":1, "ChannelName":"陕西卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226204/00000100000000060000000000152298_0.smil", "ChannelHD":0, "ChannelName":"深圳卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226084/00000100000000060000000000005879_0.smil", "ChannelHD":2, "ChannelName":"深圳卫视HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226139/00000100000000060000000000087179_0.smil", "ChannelHD":1, "ChannelName":"生活时尚"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226273/10000100000000060000000001533614_0.smil", "ChannelHD":1, "ChannelName":"时尚购物"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226151/00000100000000060000000000087191_0.smil", "ChannelHD":1, "ChannelName":"四川卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226321/10000100000000060000000002340601_0.smil", "ChannelHD":2, "ChannelName":"陶瓷HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226107/00000100000000060000000000022372_0.smil", "ChannelHD":1, "ChannelName":"体育频道"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226123/00000100000000060000000000087161_0.smil", "ChannelHD":1, "ChannelName":"天津卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225765/iptv255201.smil", "ChannelHD":1, "ChannelName":"投资理财"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226097/00000100000000060000000000007696_0.smil", "ChannelHD":1, "ChannelName":"外语频道"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225697/iptv207702.smil", "ChannelHD":1, "ChannelName":"网球"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226234/10000100000000060000000000813434_0.smil", "ChannelHD":2, "ChannelName":"五星体育HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226134/00000100000000060000000000087166_0.smil", "ChannelHD":1, "ChannelName":"西藏卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226187/00000100000000060000000000152294_0.smil", "ChannelHD":1, "ChannelName":"新疆卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226089/00000100000000060000000000007688_0.smil", "ChannelHD":0, "ChannelName":"新闻综合"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226233/10000100000000060000000000813435_0.smil", "ChannelHD":2, "ChannelName":"新闻综合HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226094/00000100000000060000000000007693_0.smil", "ChannelHD":1, "ChannelName":"星尚"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226077/00000100000000060000000000000293_0.smil", "ChannelHD":1, "ChannelName":"炫动卡通"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226092/00000100000000060000000000007691_0.smil", "ChannelHD":1, "ChannelName":"艺术人文"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226245/10000100000000060000000000965372_0.smil", "ChannelHD":1, "ChannelName":"优购物"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/0/3221225478/00000000010t.smil", "ChannelHD":1, "ChannelName":"游戏风云"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226091/00000100000000060000000000007690_0.smil", "ChannelHD":0, "ChannelName":"娱乐频道"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226219/10000100000000060000000000522063_0.smil", "ChannelHD":2, "ChannelName":"娱乐频道HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226136/00000100000000060000000000087168_0.smil", "ChannelHD":1, "ChannelName":"云南卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226156/00000100000000060000000000087188_0.smil", "ChannelHD":0, "ChannelName":"浙江卫视"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226111/00000100000000060000000000037315_0.smil", "ChannelHD":2, "ChannelName":"浙江卫视(高清)"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226206/00000100000000060000000000201569_0.smil", "ChannelHD":2, "ChannelName":"直播室2 HD"},'+
'{"ChannelURL":"rtsp://124.75.34.37/PLTV/88888888/224/3221226137/00000100000000060000000000087175_0.smil", "ChannelHD":1, "ChannelName":"重庆卫视"}]}';

timenow(4);
reload();

function reload()
{
    obj = JSON.parse(iptvlist);
    document.getElementById("demo").innerHTML = ""
    var begin_time,end_time;
    begin_time = document.getElementById("begin_user_date").value + document.getElementById("begin_user_time").value+"00";
    begin_time=begin_time.replace(/-/g, "");
    begin_time=begin_time.replace(/:/g, "");
    end_time = document.getElementById("end_user_date").value + document.getElementById("end_user_time").value+"00";
    end_time=end_time.replace(/-/g, "");
    end_time=end_time.replace(/:/g, "");
    var HDtag = 0;
    if (document.getElementById("HDDel").checked){
        HDtag=1;
    }
    if (document.getElementById("HDonly").checked){
        HDtag=2;
    }
    for (var i=0;i<obj.iptv.length;i++)
    {
        if(obj.iptv[i].ChannelHD>=HDtag){
            document.getElementById("demo").innerHTML = document.getElementById("demo").innerHTML +"<p><a href=\"" + obj.iptv[i].ChannelURL + "?playseek=" + begin_time + "-" + end_time + "\">" + obj.iptv[i].ChannelName + "</a></p>";
        }
    }
}

function timenow(offset)
{
    var nowtime =new Date();
    
    document.getElementById("begin_user_date").value=nowtime.getFullYear().toString() + "-" + pad((nowtime.getMonth()+1).toString(),2) + "-" + pad((nowtime.getDate()).toString(),2);
    document.getElementById("begin_user_time").value=pad(nowtime.getHours().toString(),2) + ":" + pad(nowtime.getMinutes().toString(),2);

    nowtime.setHours(nowtime.getHours() + offset);
    
    document.getElementById("end_user_date").value=nowtime.getFullYear().toString() + "-" + pad((nowtime.getMonth()+1).toString(),2) + "-" + pad((nowtime.getDate()).toString(),2);
    document.getElementById("end_user_time").value=pad(nowtime.getHours().toString(),2) + ":" + pad(nowtime.getMinutes().toString(),2);
}

function pad(num, n) {  
    var len = num.toString().length;  
    while(len < n) {  
        num = "0" + num;  
        len++;  
    }  
    return num;  
}

function m3u() {
    obj = JSON.parse(iptvlist);
    document.getElementById("demo").innerHTML = "#EXTM3U <br>";
    var HDtag = 0;
    if (document.getElementById("HDDel").checked){
        HDtag=1;
    }
    if (document.getElementById("HDonly").checked){
        HDtag=2;
    }
    var ii =0;
    for (var i=0;i<obj.iptv.length;i++){
        if(obj.iptv[i].ChannelHD>=HDtag){
            document.getElementById("demo").innerHTML = document.getElementById("demo").innerHTML + "#EXTINF:" + pad(ii.toString(),3) + ", " + obj.iptv[i].ChannelName + "<br>";
            document.getElementById("demo").innerHTML = document.getElementById("demo").innerHTML + obj.iptv[i].ChannelURL + "<br>";
            ii=ii+1;
        }
    }
    
}

function txt() {
    obj = JSON.parse(iptvlist);
    document.getElementById("demo").innerHTML = "";
    var HDtag = 0;
    if (document.getElementById("HDDel").checked){
        HDtag=1;
    }
    if (document.getElementById("HDonly").checked){
        HDtag=2;
    }
    for (var i=0;i<obj.iptv.length;i++){
        if(obj.iptv[i].ChannelHD>=HDtag){
            document.getElementById("demo").innerHTML = document.getElementById("demo").innerHTML + obj.iptv[i].ChannelName + "," + obj.iptv[i].ChannelURL + "<br>";
        }
    }
    
}

function noplayseek() {
    obj = JSON.parse(iptvlist);
    var HDtag = 0;
    if (document.getElementById("HDonly").checked){
        HDtag=1;
    }
    document.getElementById("demo").innerHTML = "";
    for (var i=0;i<obj.iptv.length;i++){
        if(obj.iptv[i].ChannelHD>=HDtag){
            document.getElementById("demo").innerHTML = document.getElementById("demo").innerHTML +"<p><a href=\"" + obj.iptv[i].ChannelURL + "\">" + obj.iptv[i].ChannelName + "</a></p>";
        }
    }
    
}
</script>

</body>
</html>